package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商城订单对象 kk_order
 * 
 * @author ruoyi
 * @date 2022-05-24
 */
public class KkOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 会员id */
    @Excel(name = "会员id")
    private Integer uid;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal totalPrice;

    /** 余额抵扣 */
    @Excel(name = "余额抵扣")
    private BigDecimal moneyDk;

    /** 微信支付金额 */
    @Excel(name = "微信支付金额")
    private BigDecimal price;

    /** 积分支付 */
    @Excel(name = "积分支付")
    private BigDecimal integralPrice;

    /** 1微信支付 2积分兑换 */
    @Excel(name = "1微信支付 2积分兑换")
    private Integer payType;

    /** -1删除(用户) 0待付款 1待发货 2已发货 3已完成 4取消 */
    @Excel(name = "-1删除(用户) 0待付款 1待发货 2已发货 3已完成 4取消")
    private Integer status;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Integer addtime;

    /** 支付时间 */
    @Excel(name = "支付时间")
    private Integer payTime;

    /** 发货时间 */
    @Excel(name = "发货时间")
    private Integer deliverTime;

    /** 收货时间 */
    @Excel(name = "收货时间")
    private Integer confirmTime;

    /** 取消时间 */
    @Excel(name = "取消时间")
    private Integer cancelTime;

    /** 删除时间 */
    @Excel(name = "删除时间")
    private Integer delTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long creator;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setUid(Integer uid) 
    {
        this.uid = uid;
    }

    public Integer getUid() 
    {
        return uid;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }
    public void setMoneyDk(BigDecimal moneyDk) 
    {
        this.moneyDk = moneyDk;
    }

    public BigDecimal getMoneyDk() 
    {
        return moneyDk;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setIntegralPrice(BigDecimal integralPrice) 
    {
        this.integralPrice = integralPrice;
    }

    public BigDecimal getIntegralPrice() 
    {
        return integralPrice;
    }
    public void setPayType(Integer payType) 
    {
        this.payType = payType;
    }

    public Integer getPayType() 
    {
        return payType;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setAddtime(Integer addtime) 
    {
        this.addtime = addtime;
    }

    public Integer getAddtime() 
    {
        return addtime;
    }
    public void setPayTime(Integer payTime) 
    {
        this.payTime = payTime;
    }

    public Integer getPayTime() 
    {
        return payTime;
    }
    public void setDeliverTime(Integer deliverTime) 
    {
        this.deliverTime = deliverTime;
    }

    public Integer getDeliverTime() 
    {
        return deliverTime;
    }
    public void setConfirmTime(Integer confirmTime) 
    {
        this.confirmTime = confirmTime;
    }

    public Integer getConfirmTime() 
    {
        return confirmTime;
    }
    public void setCancelTime(Integer cancelTime) 
    {
        this.cancelTime = cancelTime;
    }

    public Integer getCancelTime() 
    {
        return cancelTime;
    }
    public void setDelTime(Integer delTime) 
    {
        this.delTime = delTime;
    }

    public Integer getDelTime() 
    {
        return delTime;
    }
    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("orderNo", getOrderNo())
            .append("totalPrice", getTotalPrice())
            .append("moneyDk", getMoneyDk())
            .append("price", getPrice())
            .append("integralPrice", getIntegralPrice())
            .append("payType", getPayType())
            .append("status", getStatus())
            .append("remarks", getRemarks())
            .append("addtime", getAddtime())
            .append("payTime", getPayTime())
            .append("deliverTime", getDeliverTime())
            .append("confirmTime", getConfirmTime())
            .append("cancelTime", getCancelTime())
            .append("delTime", getDelTime())
            .append("updateTime", getUpdateTime())
            .append("creator", getCreator())
            .append("createDate", getCreateDate())
            .toString();
    }
}
